package cn.kgc.ffzw.day18.homework2;


public class CommonHandset extends Handset implements PlayWiring{

    private String music;

    @Override
    public void sendInfo() {
        System.out.println("信息功能：文字信息收发");
    }

    @Override
    public void call() {
        System.out.println("电话功能：语音电话");
    }

    @Override
    public void playaudio(String music) {
        setMusic(music);
        System.out.println("音乐功能，播放本机音乐："+getMusic());
    }
    public String getMusic() {
        return music;
    }

    public void setMusic(String music) {
        this.music = music;
    }
}
